﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace CommonForms
{
	public partial class CFormInputParam : Form
	{
		#region // Constructors and Destructors:
		public CFormInputParam()
		{
			InitializeComponent();
		}
		private void CFormInputParam_Load(object sender, EventArgs e)
		{
			txtParams.Text = _strInputContents;
		}
		#endregion

		#region // Form events:
		public string _strInputContents = "";

		private void btnOk_Click(object sender, EventArgs e)
		{
			_strInputContents = txtParams.Text;
			this.DialogResult = DialogResult.OK;
			this.Close();
		}

		private void btnCancel_Click(object sender, EventArgs e)
		{
			//_strInputContents = txtParams.Text;
			this.DialogResult = DialogResult.Cancel;
			this.Close();
		}
		#endregion
	}
}
